<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="main">
<head>
    <meta charset="UTF-8">
    <title>指派销售机会</title>
    <link th:href="@{/static/localcss/userlist.css}" href="../../static/localcss/userlist.css" rel="stylesheet">
    <script th:src="@{/localjs/rollpage.js}" src="../static/localjs/rollpage.js"></script>
    <script th:src="@{/js/jquery.min.js}" src="../static/js/jquery.min.js"></script>
    <script src="../static/localjs/findcustomermanager.js" th:src="@{/localjs/findcustomermanager.js}"></script>

</head>
<body>
<div layout:fragment="content">

        <div class="row">
            <div class="col-lg-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>
                            指派销售机会<i class="fa fa-list-ol"></i>
                        </h2>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>

            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h5>Basic Info</h5>
                    </div>
                    <div class="x_content">
                        <table class="table">
                            <thead>
                            <tr>
                                <th class="col-lg-4">#</th>
                                <th class="col-lg-8">content</th>
                            </tr>
                            </thead>

                            <tbody>
                            <tr>
                                <th>客户名称</th>
                                <td th:text="${chance.getChcCustName()}"></td>
                            </tr>
                            <tr>
                                <th>机会来源</th>
                                <td th:text="${chance.getChcSource()}"></td>
                            </tr>
                            <tr>
                                <th>概要</th>
                                <td th:text="${chance.getChcTitle()}"></td>
                            </tr>
                            <tr>
                                <th>成功几率</th>
                                <td th:text="${chance.getChcRate()}"></td>
                            </tr>
                            <tr>
                                <th>联系人</th>
                                <td th:text="${chance.getChcLinkman()}"></td>
                            </tr>
                            <tr>
                                <th>联系人电话</th>
                                <td th:text="${chance.getChcTel()}"></td>
                            </tr>
                            <tr>
                                <th>机会描述</th>
                                <td th:text="${chance.getChcDesc()}"></td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <form class="form-horizontal form-label-left" th:action="@{/chance/appointSave}" action="list.html" method="post">
                        <input type="hidden" name="chcId" th:value="${chance.chcId}" />
                        <div class="col-lg-6 form-group">
                            <div class="x_title">
                                <h5>指派给</h5>
                            </div>
                            <div class="x_content">
                                <select class="select2_demo_1 form-control" name="chcDueId" id="users">
                                </select>
                            </div>
                        </div>
                        <div class="col-lg-6 form-group">
                            <div class="x_title">
                                <h5>指派日期</h5>
                            </div>
                            <div class="x_content">
                                <div class="form-group" >

                                    <div class="input-group date">
                                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                        <input type="text" class="form-control" name="chcDueDate" th:value="${chcDueDate}" value="" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-5">
                                <button id="send" type="submit" class="btn btn-success">保存</button>
                                <button type="button" class="btn btn-primary" id="back"
                                        onclick="javascript:window.history.back();">返回
                                </button>
                                <br/><br/>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>

    </div>

</body>
</html>